﻿using ProjectManageSystemApi.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ProjectManageSystemApi.Services
{
    public interface ISupplierService
    {
        Models.PageVo<IEnumerable<SupplierInfoDto>> GetAll(Models.PageBo<SupplierParams> pageBo);
        bool Create(SupplierInfoDto supplierInfo, long userId);
        bool Update(SupplierInfoDto supplierInfo);
        bool Delete(int id);
        bool ExistById(int id); 
        bool ExistBySupplierName(string supplierName, int id = 0);
    }
}
